
import req from '@/utils/req'
// http://localhost:3000/playlist/catlist
//选择分类下面的分类 categories
export const reqGetCatlist=()=>{
    return req({
        url:'/playlist/catlist',
        method:'GET',
    })
}
// 获取全部歌单列表
export const reqGetSongslist=(cat="全部",limit=35,offset=0)=>{
    return req({
        url:'/top/playlist',
        method:'GET',
        params:{
            limit,
            offset,
            cat
        }
    })
}

// 获取categories歌单列表
export const reqGetCatSongslist=(cat,offset,limit=35)=>{
    return req({
        url:'/top/playlist',
        method:'GET',
        params:{
            limit,
            offset,
            cat
        }
    })
}
